import request from '@/utils/request'

// 查询研学活动列表
export function listStudyactivity(query) {
  return request({
    url: '/coursestudy/studyactivity/list',
    method: 'get',
    params: query
  })
}

// 查询研学活动详细
export function getStudyactivity(activityId) {
  return request({
    url: '/coursestudy/studyactivity/' + activityId,
    method: 'get'
  })
}

// 新增研学活动
export function addStudyactivity(data) {
  return request({
    url: '/coursestudy/studyactivity',
    method: 'post',
    data: data
  })
}

// 修改研学活动
export function updateStudyactivity(data) {
  return request({
    url: '/coursestudy/studyactivity',
    method: 'put',
    data: data
  })
}

// 删除研学活动
export function delStudyactivity(activityId) {
  return request({
    url: '/coursestudy/studyactivity/' + activityId,
    method: 'delete'
  })
}
